Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug radar.py #6606

Merged
merged 6 commits into from
Aug 2, 2024
Merged

Fixed bug radar.py #6606

merged 6 commits into from
Aug 2, 2024

Conversation

lonely-poppy
Copy link
Contributor

Description
Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar

Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar
@lonely-poppy lonely-poppy added the bug Something isn't working label Aug 1, 2024
@lonely-poppy lonely-poppy self-assigned this Aug 1, 2024
@lonely-poppy lonely-poppy requested a review from a team as a code owner August 1, 2024 09:57
Copy link
Member

@omichel omichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
Could you please also add a line in change log?

@omichel omichel added this to the R2024a milestone Aug 1, 2024
Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar
@omichel omichel merged commit 1200531 into cyberbotics:master Aug 2, 2024
20 checks passed
nhjschulz pushed a commit to nhjschulz/webots that referenced this pull request Aug 5, 2024
* fix bug radar.py

Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar

* Fixed the bug in obtaining radar detection target information#6606

Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar

---------

Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
gabryelreyes added a commit that referenced this pull request Aug 5, 2024
* Improve sound support for external controller (#6591)

Stream sound data from controller to Webots if the sound file path
is accesible by the controller process. This allows external
controller to use sounds even if the file path is not accessible
from Webots.

 * Controller: Try to load sound data on controller side and stream
   it to webots as part of the C_SPEAKER_PLAY_SOUND message. (speaker.c)
 * Webots: Read controller uploaded sound data in C_SPEAKER_PLAY_SOUND
   message (WbSpeaker). Use former file based load method if no data
   was streamed from controller.
 * Streamed sound data is cached inside WbSpeaker instance as controller
   provides the data only on first use of a sound file.
 * Updated speaker.md to explain when wb_speaker_play_sound()
   streams loads the sound data itself already.
 * Prevent copy/assignment of WbSoundClip as it now hold a heap
   allocated member (mDevice).

* WbSpeaker.cpp - fix source indentation

* Fix comment typo in speaker.c

* Address cppcheck issues

* Added changelog entry for this PR

Fixed ubuntu tester src formatting issue.

* Fix formatting issue in WbSpeaker.cpp

* Fixed bug radar.py (#6606)

* fix bug radar.py

Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar

* Fixed the bug in obtaining radar detection target information#6606

Fixed the bug that when using Python to write a controller, using getTargets() could not correctly obtain multiple target data detected by radar

---------

Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>

* Added changelog entry for this PR

Fixed ubuntu tester src formatting issue.

* Addressed code review comments

#6605

* Incorporated review feedback

Added improvement provided by CoolSpy3.

* Update src/controller/c/speaker.c

---------

Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
Co-authored-by: Gabryel Reyes <66941456+gabryelreyes@users.noreply.github.com>
Co-authored-by: lonely-poppy <77427326+lonely-poppy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Radar sensor, using Python API to read target data does not meet expectations
2 participants